package com.msb.mall.product;

import com.msb.mall.common.exception.ExceptionControllerAdvice;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.Mapping;

/**
 * @Author: lmf
 * @Create: 2025/2/9 16:11
 * Description:  $description
 */// Press Shift twice to open the Search Everywhere dialog and type `show whitespaces`,
// then press Enter. You can now see whitespace characters in your code.
@SpringBootApplication
// 启动服务注册发现功能
@EnableDiscoveryClient
@MapperScan("com.msb.mall.product.dao")
// basePackageClasses = {ExceptionControllerAdvice.class} 把对应的全局捕获异常类添加进去
@ComponentScan(basePackageClasses = {ExceptionControllerAdvice.class},basePackages = "com.msb.mall.product")
public class MallProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(MallProductApplication.class,args);
    }
}